from ronglian_sms_sdk import SmsSDK
import random

accId = '2c94811c8853194e0188616ffbeb0324'
accToken = '35a494f497cd4f37989b879a61a35602'
appId = '2c94811c8853194e0188616ffd23032b'


def send_message(verification_code, mobile):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    datas = (verification_code, '1')
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp


if __name__ == '__main__':
    code = str(random.randint(1000, 9999))
    result = send_message(code, '15655668826')
    print(type(result))

